﻿package com.snzflash.events 
{
	import flash.events.Event;
	
	/**
	 * ...
	 * @author firsoff maxim, tel: +79222345364, skype: maxim.firsoff
	 */
	public class NavigationEvent extends Event 
	{
		
		public static const NEXT:String = 'next';
		public static const BACK:String = 'back';
		public static const SEEK:String = 'seek';
		public static const VOLUME:String = 'volume';
		public static const FULLSCREEN:String = 'fullscreen';
		public static const NORMAL_SCREEN:String = 'normal_screen';
		public static const PLAY:String = 'play';
		public static const PAUSE:String = 'pause';
		
		public var data:*;
		public function NavigationEvent(type:String, bubbles:Boolean=false, cancelable:Boolean=false, data:* = null) 
		{ 
			this.data = data;
			super(type, bubbles, cancelable);
			
		} 
		
		public override function clone():Event 
		{ 
			return new NavigationEvent(type, bubbles, cancelable, data);
		} 
		
		public override function toString():String 
		{ 
			return formatToString("NavigationEvent", "type", "bubbles", "cancelable", "eventPhase"); 
		}
		
	}
	
}